﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Obsidian.GameObjects;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Obsidian.Components
{
    public class TextRenderer : Renderer
    {
        public SpriteFont Font;
        public string Text;

        protected override void DrawCore(DrawingContext context, ref Matrix global)
        {
            context.DrawText(Font, Text, Vector2.Zero, Color.Black, ref global);
            base.DrawCore(context, ref global);
        }

        public TextRenderer()
            : base("TextRenderer")
        {

        }
    }
}
